package com.itfs.controller;

import com.itfs.strategyDdemo.CoffeeContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;

@Component
public class Controller {

    @Autowired
    private CoffeeContext coffeeContext;

    @GetMapping("/get")
    public void getCoffee(@Param("size") String size) {
        this.coffeeContext.getCoffee(size);
    }

}
